/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/*
 * FrmCliente.java
 *
 * Created on 03-14-2011, 09:06:27 PM
 */
package tarea.vista;

import java.text.SimpleDateFormat;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;
import javax.swing.DefaultListModel;
import tarea.Alumno;
import tarea.CDAO;
import tarea.Cliente;
import tarea.FactoryObject;
import tarea.Persona;

/**
 *
 * @author Gabriel Bran
 */
public class FrmCliente extends javax.swing.JFrame {

    private Cliente cliente;
    private Alumno alumno;
    private CDAO cdao = new CDAO();
    private FactoryObject fo = new FactoryObject();

    public Alumno getAlumno() {
        return alumno;
    }

    public void setAlumno(Alumno alumno) {
        this.alumno = alumno;
    }

    public Cliente getCliente() {
        return cliente;
    }

    public void setCliente(Cliente cliente) {
        this.cliente = cliente;
    }

    /**
     * Limpia los controles del formulario
     */
    public final void limpiarFormulario() {
        ddTipoPersona.setModel(new javax.swing.DefaultComboBoxModel(new String[]{"Alumno", "Cliente"}));
        txNombres.setText("");
        txPrimerApellido.setText("");
        txSegundoApellido.setText("");
        txTelefono.setText("");
        txCorreo.setText("");
        txEdad.setText("");
        txDireccion.setText("");
        txGrado.setText("");
        txFechaIngreso.setText("");
    }

    /**
     * Fija los datos de una persona en el formlario.
     * @param p Persona
     */
    public void setElemento(Persona p) {
        if (p instanceof Alumno) {
            Alumno a = (Alumno) p;
            ddTipoPersona.setSelectedItem("Alumno");
            txNombres.setText(a.getNombres());
            txPrimerApellido.setText(a.getApellido1());
            txSegundoApellido.setText(a.getApellido2());
            txTelefono.setText(a.getTelefono());
            txCorreo.setText(a.getEmail());
            txEdad.setText(a.getEmail());
            txDireccion.setText(a.getDireccion());
            txGrado.setText(a.getGrado());
            txFechaIngreso.setText(new SimpleDateFormat("dd/MM/yyyy").format(a.getFechaIngreso()));
        } else if (p instanceof Cliente) {
            Cliente c = (Cliente) p;
            ddTipoPersona.setSelectedItem("Cliente");
            txNombres.setText(c.getNombres());
            txPrimerApellido.setText(c.getApellido1());
            txSegundoApellido.setText(c.getApellido2());
            txTelefono.setText(c.getTelefono());
            txCorreo.setText(c.getEmail());
            txEdad.setText(c.getEmail());
            txDireccion.setText(c.getDireccion());
            txGrado.setText("");
            txFechaIngreso.setText("");
        }

    }

    /** Creates new form FrmCliente */
    public FrmCliente() {
        initComponents();
        limpiarFormulario();
        cdao = (CDAO) fo.CreateObject(cdao);
        listarElementos("Alumno");
        txGrado.setVisible(true);
        txFechaIngreso.setVisible(true);
        lbGrado.setVisible(true);
        lbFechaIngreso.setVisible(true);
    }

    /** This method is called from within the constructor to
     * initialize the form.
     * WARNING: Do NOT modify this code. The content of this method is
     * always regenerated by the Form Editor.
     */
    @SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    private void initComponents() {

        jpContenedor = new javax.swing.JPanel();
        txNombres = new javax.swing.JTextField();
        lbNombres = new javax.swing.JLabel();
        lbPrimerApellido = new javax.swing.JLabel();
        txPrimerApellido = new javax.swing.JTextField();
        lbTipo = new javax.swing.JLabel();
        ddTipoPersona = new javax.swing.JComboBox();
        lbSegundoApellido = new javax.swing.JLabel();
        txSegundoApellido = new javax.swing.JTextField();
        lbTelefono = new javax.swing.JLabel();
        txTelefono = new javax.swing.JTextField();
        lbCorreo = new javax.swing.JLabel();
        txCorreo = new javax.swing.JTextField();
        lbDireccion = new javax.swing.JLabel();
        jScrollPane1 = new javax.swing.JScrollPane();
        txDireccion = new javax.swing.JTextArea();
        btEliminar = new javax.swing.JButton();
        btLimpiar = new javax.swing.JButton();
        lbTitulo = new javax.swing.JLabel();
        lbEdad = new javax.swing.JLabel();
        lbGrado = new javax.swing.JLabel();
        lbFechaIngreso = new javax.swing.JLabel();
        txFechaIngreso = new javax.swing.JTextField();
        txEdad = new javax.swing.JTextField();
        txGrado = new javax.swing.JTextField();
        jScrollPane2 = new javax.swing.JScrollPane();
        lstVariables = new javax.swing.JList();
        btGuardar = new javax.swing.JButton();
        btEditar = new javax.swing.JButton();
        lbElementos = new javax.swing.JLabel();

        setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);
        setTitle("Tarea 1 - Catálogo de personas");

        jpContenedor.setAlignmentX(5.0F);
        jpContenedor.setAlignmentY(5.0F);

        txNombres.setText("jTextField1");

        lbNombres.setText("Nombres");

        lbPrimerApellido.setText("Primer Apellido");

        txPrimerApellido.setText("jTextField2");

        lbTipo.setText("Tipo");

        ddTipoPersona.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "Item 1", "Item 2", "Item 3", "Item 4" }));
        ddTipoPersona.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                ddTipoPersonaActionPerformed(evt);
            }
        });

        lbSegundoApellido.setText("Segundo Apellido");

        txSegundoApellido.setText("jTextField3");

        lbTelefono.setText("Teléfono");

        txTelefono.setText("jTextField4");

        lbCorreo.setText("Correo");

        txCorreo.setText("jTextField5");

        lbDireccion.setText("Dirección");

        txDireccion.setColumns(20);
        txDireccion.setRows(5);
        jScrollPane1.setViewportView(txDireccion);

        btEliminar.setText("Eliminar");
        btEliminar.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                btEliminarActionPerformed(evt);
            }
        });

        btLimpiar.setText("Limpiar");
        btLimpiar.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                btLimpiarActionPerformed(evt);
            }
        });

        lbTitulo.setFont(new java.awt.Font("DejaVu Sans", 1, 12));
        lbTitulo.setText("Catálogo de Personas");

        lbEdad.setText("Edad");

        lbGrado.setText("Grado");

        lbFechaIngreso.setText("Fecha ingreso");

        txFechaIngreso.setText("jTextField6");

        txEdad.setText("jTextField7");

        txGrado.setText("jTextField1");

        lstVariables.setModel(new javax.swing.AbstractListModel() {
            String[] strings = { "Item 1", "Item 2", "Item 3", "Item 4", "Item 5" };
            public int getSize() { return strings.length; }
            public Object getElementAt(int i) { return strings[i]; }
        });
        jScrollPane2.setViewportView(lstVariables);

        btGuardar.setText("Guardar");
        btGuardar.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                btGuardarActionPerformed(evt);
            }
        });

        btEditar.setText("Editar");
        btEditar.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                btEditarActionPerformed(evt);
            }
        });

        lbElementos.setText("Elementos");

        javax.swing.GroupLayout jpContenedorLayout = new javax.swing.GroupLayout(jpContenedor);
        jpContenedor.setLayout(jpContenedorLayout);
        jpContenedorLayout.setHorizontalGroup(
            jpContenedorLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jpContenedorLayout.createSequentialGroup()
                .addGap(12, 12, 12)
                .addComponent(lbTitulo))
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jpContenedorLayout.createSequentialGroup()
                .addContainerGap()
                .addGroup(jpContenedorLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(lbGrado)
                    .addComponent(lbDireccion)
                    .addComponent(lbEdad)
                    .addComponent(lbTelefono)
                    .addComponent(lbSegundoApellido)
                    .addComponent(lbPrimerApellido)
                    .addComponent(lbNombres, javax.swing.GroupLayout.PREFERRED_SIZE, 98, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(lbTipo))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 27, Short.MAX_VALUE)
                .addGroup(jpContenedorLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(ddTipoPersona, javax.swing.GroupLayout.PREFERRED_SIZE, 148, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addGroup(jpContenedorLayout.createSequentialGroup()
                        .addComponent(txNombres, javax.swing.GroupLayout.PREFERRED_SIZE, 380, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                        .addComponent(btGuardar, javax.swing.GroupLayout.PREFERRED_SIZE, 99, javax.swing.GroupLayout.PREFERRED_SIZE))
                    .addGroup(jpContenedorLayout.createSequentialGroup()
                        .addComponent(txPrimerApellido, javax.swing.GroupLayout.PREFERRED_SIZE, 380, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                        .addComponent(btEditar, javax.swing.GroupLayout.PREFERRED_SIZE, 99, javax.swing.GroupLayout.PREFERRED_SIZE))
                    .addComponent(txEdad, javax.swing.GroupLayout.PREFERRED_SIZE, 152, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addGroup(jpContenedorLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                        .addGroup(jpContenedorLayout.createSequentialGroup()
                            .addComponent(txGrado, javax.swing.GroupLayout.PREFERRED_SIZE, 130, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addGap(65, 65, 65)
                            .addComponent(lbFechaIngreso)
                            .addGap(7, 7, 7)
                            .addComponent(txFechaIngreso))
                        .addComponent(jScrollPane1, javax.swing.GroupLayout.PREFERRED_SIZE, 380, javax.swing.GroupLayout.PREFERRED_SIZE))
                    .addGroup(jpContenedorLayout.createSequentialGroup()
                        .addGroup(jpContenedorLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false)
                            .addGroup(javax.swing.GroupLayout.Alignment.LEADING, jpContenedorLayout.createSequentialGroup()
                                .addComponent(txTelefono, javax.swing.GroupLayout.PREFERRED_SIZE, 152, javax.swing.GroupLayout.PREFERRED_SIZE)
                                .addGap(12, 12, 12)
                                .addComponent(lbCorreo)
                                .addGap(18, 18, 18)
                                .addComponent(txCorreo))
                            .addComponent(txSegundoApellido, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.PREFERRED_SIZE, 380, javax.swing.GroupLayout.PREFERRED_SIZE))
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                        .addGroup(jpContenedorLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                            .addComponent(btEliminar, javax.swing.GroupLayout.PREFERRED_SIZE, 100, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(btLimpiar, javax.swing.GroupLayout.PREFERRED_SIZE, 100, javax.swing.GroupLayout.PREFERRED_SIZE))))
                .addContainerGap())
            .addGroup(jpContenedorLayout.createSequentialGroup()
                .addContainerGap()
                .addComponent(lbElementos)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 63, Short.MAX_VALUE)
                .addComponent(jScrollPane2, javax.swing.GroupLayout.PREFERRED_SIZE, 380, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addGap(126, 126, 126))
        );
        jpContenedorLayout.setVerticalGroup(
            jpContenedorLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jpContenedorLayout.createSequentialGroup()
                .addGroup(jpContenedorLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(jpContenedorLayout.createSequentialGroup()
                        .addContainerGap(32, Short.MAX_VALUE)
                        .addGroup(jpContenedorLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(ddTipoPersona, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(lbTipo))
                        .addGap(6, 6, 6)
                        .addGroup(jpContenedorLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(txNombres, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(btGuardar)
                            .addComponent(lbNombres))
                        .addGap(6, 6, 6)
                        .addGroup(jpContenedorLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(txPrimerApellido, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(btEditar)
                            .addComponent(lbPrimerApellido))
                        .addGap(6, 6, 6)
                        .addGroup(jpContenedorLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(txSegundoApellido, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(btEliminar)
                            .addComponent(lbSegundoApellido))
                        .addGap(6, 6, 6)
                        .addGroup(jpContenedorLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addGroup(jpContenedorLayout.createSequentialGroup()
                                .addGroup(jpContenedorLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                    .addGroup(jpContenedorLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                                        .addComponent(txTelefono, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                                        .addComponent(lbTelefono))
                                    .addGroup(jpContenedorLayout.createSequentialGroup()
                                        .addGap(5, 5, 5)
                                        .addComponent(lbCorreo)))
                                .addGap(6, 6, 6)
                                .addGroup(jpContenedorLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                                    .addComponent(txEdad, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                                    .addComponent(lbEdad)))
                            .addGroup(jpContenedorLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                                .addComponent(txCorreo, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                                .addComponent(btLimpiar)))
                        .addGap(6, 6, 6))
                    .addComponent(lbTitulo))
                .addGroup(jpContenedorLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(jScrollPane1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(lbDireccion))
                .addGap(6, 6, 6)
                .addGroup(jpContenedorLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(txGrado, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(lbFechaIngreso, javax.swing.GroupLayout.PREFERRED_SIZE, 20, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(txFechaIngreso, javax.swing.GroupLayout.PREFERRED_SIZE, 24, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(lbGrado))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(jpContenedorLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(jScrollPane2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(lbElementos))
                .addGap(60, 60, 60))
        );

        javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
        getContentPane().setLayout(layout);
        layout.setHorizontalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup()
                .addContainerGap()
                .addComponent(jpContenedor, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
        );
        layout.setVerticalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup()
                .addGap(29, 29, 29)
                .addComponent(jpContenedor, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
        );

        pack();
    }// </editor-fold>//GEN-END:initComponents

    private void btLimpiarActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btLimpiarActionPerformed
        limpiarFormulario();
    }//GEN-LAST:event_btLimpiarActionPerformed

    private void btEliminarActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btEliminarActionPerformed
        // TODO add your handling code here:
    }//GEN-LAST:event_btEliminarActionPerformed

    private void btEditarActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btEditarActionPerformed
        // TODO add your handling code here:
    }//GEN-LAST:event_btEditarActionPerformed

    private void ddTipoPersonaActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_ddTipoPersonaActionPerformed

        txGrado.setVisible(ddTipoPersona.getSelectedItem().toString().equals("Alumno"));
        txFechaIngreso.setVisible(ddTipoPersona.getSelectedItem().toString().equals("Alumno"));
        lbGrado.setVisible(ddTipoPersona.getSelectedItem().toString().equals("Alumno"));
        lbFechaIngreso.setVisible(ddTipoPersona.getSelectedItem().toString().equals("Alumno"));
        listarElementos(ddTipoPersona.getSelectedItem().toString());

    }//GEN-LAST:event_ddTipoPersonaActionPerformed

    private void btGuardarActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btGuardarActionPerformed
        if (ddTipoPersona.getSelectedItem().toString().equals("Alumno")) {
            Alumno a = new Alumno();
            a.setNombres(txNombres.getText().toString().trim());
            a.setApellido1(txPrimerApellido.getText().toString().trim());
            a.setApellido2(txSegundoApellido.getText().toString().trim());
            a.setTelefono(txTelefono.getText().toString().trim());
            a.setEmail(txCorreo.getText().toString().trim());
            a.setEdad(new Integer(txEdad.getText().toString()).intValue());
            a.setDireccion(txDireccion.getText().toString().trim());
            a.setGrado(txGrado.getText().toString().trim());
            a.setFechaIngreso(new Date());
            cdao.agregarElemento(a);
            fo.PersistObject(cdao);
            cdao = null;
            cdao = (CDAO) fo.CreateObject(cdao);

        } else if (ddTipoPersona.getSelectedItem().toString().equals("Cliente")) {
            Cliente c = new Cliente();
            c.setNombres(txNombres.getText().toString().trim());
            c.setApellido1(txPrimerApellido.getText().toString().trim());
            c.setApellido2(txSegundoApellido.getText().toString().trim());
            c.setTelefono(txTelefono.getText().toString().trim());
            c.setEmail(txCorreo.getText().toString());
            c.setEdad(new Integer(txEdad.getText().toString()).intValue());
            c.setDireccion(txDireccion.getText().toString().trim());
            cdao.agregarElemento(c);
            fo.PersistObject(cdao);
            cdao = null;
            cdao = (CDAO) fo.CreateObject(cdao);
        }
        listarElementos(ddTipoPersona.getSelectedItem().toString());
        limpiarFormulario();

    }//GEN-LAST:event_btGuardarActionPerformed

    public final void listarElementos(String s) {

        this.lstVariables.removeAll();
        DefaultListModel dlm = new DefaultListModel();

        if (s.equals("Alumno")) {
            List<Alumno> lst = new ArrayList<Alumno>();
            for (Alumno a : lst) {
                dlm.addElement(a.getNombres());
            }
            this.lstVariables.setModel(dlm);
        } else if (s.equals("Cliente")) {
            List<Cliente> lst = new ArrayList<Cliente>();
            for (Cliente a : lst) {
                dlm.addElement(a.getNombres());
            }
            this.lstVariables.setModel(dlm);
        }

    }

    /**
     * @param args the command line arguments
     */
    public static void main(String args[]) {
        java.awt.EventQueue.invokeLater(new Runnable() {

            public void run() {
                new FrmCliente().setVisible(true);
            }
        });
    }
    // Variables declaration - do not modify//GEN-BEGIN:variables
    private javax.swing.JButton btEditar;
    private javax.swing.JButton btEliminar;
    private javax.swing.JButton btGuardar;
    private javax.swing.JButton btLimpiar;
    private javax.swing.JComboBox ddTipoPersona;
    private javax.swing.JScrollPane jScrollPane1;
    private javax.swing.JScrollPane jScrollPane2;
    private javax.swing.JPanel jpContenedor;
    private javax.swing.JLabel lbCorreo;
    private javax.swing.JLabel lbDireccion;
    private javax.swing.JLabel lbEdad;
    private javax.swing.JLabel lbElementos;
    private javax.swing.JLabel lbFechaIngreso;
    private javax.swing.JLabel lbGrado;
    private javax.swing.JLabel lbNombres;
    private javax.swing.JLabel lbPrimerApellido;
    private javax.swing.JLabel lbSegundoApellido;
    private javax.swing.JLabel lbTelefono;
    private javax.swing.JLabel lbTipo;
    private javax.swing.JLabel lbTitulo;
    private javax.swing.JList lstVariables;
    private javax.swing.JTextField txCorreo;
    private javax.swing.JTextArea txDireccion;
    private javax.swing.JTextField txEdad;
    private javax.swing.JTextField txFechaIngreso;
    private javax.swing.JTextField txGrado;
    private javax.swing.JTextField txNombres;
    private javax.swing.JTextField txPrimerApellido;
    private javax.swing.JTextField txSegundoApellido;
    private javax.swing.JTextField txTelefono;
    // End of variables declaration//GEN-END:variables
}
